package SmartFurniture.Director;

import SmartFurniture.AbstractBuilder.SpeakerBuilder;
import SmartFurniture.Entity.Speaker;

public class SpeakerDirector {
    private SpeakerBuilder speakerBuilder;

    public SpeakerDirector(SpeakerBuilder speakerBuilder) {
        this.speakerBuilder = speakerBuilder;
    }

    public Speaker constructSpeaker() {
        speakerBuilder.buildSpeakername();
        speakerBuilder.buildSoundRecognition();
        speakerBuilder.buildWifi();
        speakerBuilder.buildSoundEffect();
        speakerBuilder.buildHelper();
        return speakerBuilder.getSpeaker();
    }


}
